const getUrlParams = function(el) {
  var url = location.href
    for(let a = 0; a< url.length; a++) {
      if(url[a] == '#') {
        var str = url.substr(a)
        break;
      }
    }
    console.log(str,11111111111111)
    if(str.indexOf('?') != -1) {
      for(let i = 0; i< str.length; i++) {
        if(str[i] == '?') {
          var searchStr = str.substr(i + 1)
          break;
        }
      }
      console.log(searchStr,2222222)
      var arr = searchStr.split('&')
      console.log(arr,333333333333)
      for(let j = 0; j< arr.length; j++) {
        console.log(arr[j].split("=")[0],'--------', arr[j].split("=")[1])
        el.urlParams[arr[j].split("=")[0]] = arr[j].split("=")[1]
      }
      console.table(el.urlParams);
    }




}
export default getUrlParams
